package com.hcss.common.redis.config;

import lombok.Getter;
import lombok.Setter;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @描述: redis配置文件常量类
 * @作者: xuqian
 * @创建日期: 2018-07-16 16:51
 * @公司 浙江鸿程计算机系统有限公司
 */
@Getter
@Setter
@Component
@ConfigurationProperties(prefix = "spring.redis")
public class RedisConfigConstants {
    private String hostName;

    private int port = 6379;

    private String password;

    private Pool pool;

    private Integer sessionExpire;

    @Getter
    @Setter
    public static class Pool {
        private int maxWaitMillis;
        private int maxIdle = 8;
        private int maxTotal = 8;
        private int minIdle = 0;
    }
}
